//
//  ShowMeViewController.swift
//  BanTangSwiftTest
//
//  Created by 谭启宏 on 16/6/2.
//  Copyright © 2016年 tqh. All rights reserved.
//

import UIKit

class ShowMeViewController: UIViewController {
    override func viewDidLoad() {
    
        let leftItem = UIBarButtonItem.init(title: "返回", style: UIBarButtonItemStyle.Plain, target: self, action: #selector(self.leftItemPressed))
        self.navigationItem.leftBarButtonItem = leftItem

    }
    
    
    func leftItemPressed() {
        self.navigationController?.dismissViewControllerAnimated(true, completion: nil)
    }
}
